package com.designpattern.demo.design3;

/**
 * 服饰类
 * Created by lingchen on 2019/11/27. 22:52
 * mail:lingchen52@foxmail.com
 */
public class Finery extends Person {

    private Person component;

    public void setComponent(Person component) {
        this.component = component;
    }

    @Override
    public void show() {
        if (component != null) {
            component.show();
        }
    }
}
